Skip to content

Conversation

@PThorpe92
Copy link
Collaborator

@PThorpe92 PThorpe92 commented Nov 15, 2025

Someone noticed they have an 8GB WAL file after using turso in a daemon which is constantly restarted. SQLite will truncate checkpoint the log automatically when the final connection to a database drops. We do this currently, but only when close is explicitly called.

Otherwise this is quite problematic because we read the entire WAL into the frame cache on startup every time.

@Pavan-Nambi
Copy link
Contributor

Pavan-Nambi commented Nov 15, 2025

I think, this closes #3729, haven't checked locally but from pr description. or i misunderstood this - in that case, ignore this.

@jussisaurio
Copy link
Collaborator

I reran Test bindings on browser since it had timed out, and it still timed out -- perhaps this branch has a real issue related to browser specifically?

Copy link
Collaborator

@jussisaurio jussisaurio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Browser bindings test is timing out, even after re-running them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants